package com.authine.cloudpivot.ext.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 张天赐
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel("极简参数订单商品")
public class OrderGoodsSimple implements Serializable {

    private static final long serialVersionUID = 727014537529150767L;

    @NotEmpty(message = "客户料号 不能为空")
    @ApiModelProperty(value = "客户料号", required = true, dataType = "string", example = "ke-hu-sku", position = 1)
    private String sku;
    @NotEmpty(message = "公司 不能为空")
    @ApiModelProperty(value = "公司", required = true, dataType = "string", example = "上海固买供应链管理有限公司", position = 2)
    private String company;
    @ApiModelProperty(value = "数量", dataType = "double", example = "9999", position = 3)
    private BigDecimal quantity;
    @ApiModelProperty(value = "含税单价", dataType = "double", example = "1.0", position = 3)
    private BigDecimal price;
    @ApiModelProperty(value = "总价", dataType = "double", example = "9999.00", position = 3)
    private BigDecimal amount;
    @ApiModelProperty(value = "仓库", dataType = "string", example = "上海某某仓库", position = 3)
    private String warehouse;
    @ApiModelProperty(value = "申购人", dataType = "string", example = "张三", position = 3)
    private String requisitioner;

}
